home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTake Digital Camera / MyQuickTakeApp 1.0.1TC7 ƒ / Headers / Preferences (develop 18) / DebugUtils.h < prev    next >
Encoding:
Text File  |  1994-11-24  |  936 b   |  46 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        DebugUtils.h
  3.  
  4.     Contains:    Helpful debugging macros.
  5.                 
  6.     Written by:    Jim Reekes
  7.  
  8.     Copyright:    © 1993-94 by Apple Computer, Inc.
  9.     
  10.     Change History (most recent first):
  11.     
  12. */
  13.  
  14. //-----------------------------------------------------------------------
  15.  
  16. #ifndef _DEBUGUTILS_
  17. #define _DEBUGUTILS_
  18.  
  19. #include "CompileFlags.h"
  20.  
  21. //-----------------------------------------------------------------------
  22. // Macros
  23.  
  24. #ifdef DEBUG_IT
  25. #define FailMessage(cond, s)                                \
  26.     if (cond) {                                                \
  27.         DebugStr ((ConstStr255Param)"\p"#s);                \
  28.     }                                                        
  29. #else
  30. #define FailMessage(cond, s)                                \
  31.     ((void)    0)
  32. #endif DEBUG_IT
  33.  
  34. #ifdef DEBUG_IT
  35. #define DebugMessage(s)            DebugStr ((ConstStr255Param)"\p"#s)
  36. #else
  37. #define DebugMessage(s)            ((void)    0)
  38. #endif DEBUG_IT
  39.  
  40. //-----------------------------------------------------------------------
  41.  
  42. #endif _DEBUGUTILS_
  43.  
  44. //-----------------------------------------------------------------------
  45.  
  46.